import { Quasar } from 'quasar'
import { Cookies, Dark, Notify, LocalStorage ,AppFullscreen} from "quasar"

import '@quasar/extras/material-icons/material-icons.css'
import 'quasar/src/css/index.sass'
import quasarLang from "quasar/lang/zh-CN"
import { QBtn } from 'quasar'; 

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import rawDisplayer from "@/components/infra/raw-displayer.vue";

export default {
  install: (app, cfg) => {
    app.use(Quasar, {
      lang: quasarLang,
      plugins: {
        AppFullscreen,
        Dark,
        Cookies,
        Notify,
        LocalStorage,
      },
    },)

    // 注册全部el-icon图标
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      // console.log(`key 👉`,key)
      // console.log(`component 👉`,component)
      app.component(key, component)
    }

    app.component("rawDisplayer", rawDisplayer);
    app.component("QBtn", QBtn);

  }
}
